package com.lanjiyin.cloud.common.constant;

public class RestCodeConstants {
	// ===============公共错误代码========================//
	
	public static final int TOKEN_INVALID_CODE = 40008;
	public static final String TOKEN_INVALID_MESSAGE = "非法请求";
	
	
	// 成功
	public static final int SUCCESS_CODE = 200;
	public static final String SUCCESS_MESSAGE = "success";
	// 失败
	public static final int FAIL_CODE = 300;
	public static final String FAIL_MESSAGE = "fail";
	// 参数错误
	public static final int PARAM_ERROR_CODE = 40000;
	public static final String PARAM_ERROR_MESSAGE = "参数错误";
	// 登录失败错误
	public static final int LOGIN_ERROR_CODE = 40001;
	public static final String LOGIN_ERROR_MESSAGE = "登录失败";
	// 第三方授权失败
	public static final int LOGIN_AUTH_ERROR_CODE = 40004;
	public static final String LOGIN_AUTH_ERROR_MESSAGE = "授权失败";
	// 不存在
	public static final int ACCOUNT_ERROR_CODE = 40002;
	public static final String ACCOUNT_ERROR_MESSAGE = "账户不存在";
	// 空数据
	public static final int EMPTY_STATUS_CODE = 40400;
	public static final String EMPTY_STATUS_MESSAGE = "无数据";
	// 用户不存在/登录状态失效
	public static final int TOKEN_ERROR_CODE = 40101;
	// 权限不足或非法请求
	public static final int TOKEN_FORBIDDEN_CODE = 40301;
	// 权限不足
	public static final int TOKEN_PASSWORD_CODE = 40302;
	// 名称已存在
	public static final int ESITS_ERROR_CODE = 40304;
	public static final String ESITS_ERROR_MESSAGE = "已经存在";
	// 不存在
	public static final int NOEXITS_ERROR_CODE = 40307;
	// 系统内部错误
	public static final int SYSTEM_ERROR_CODE = 500;
	public static final String SYSTEM_ERROR_MESSAGE = "系统错误";
	// ===============短信相关错误代码========================//
	// 验证失败
	public static final int SMS_ERROR_CODE = 40003;
	public static final String SMS_ERROR_MESSAGE = "验证码不正确";
	// 短信发送频繁异常
	public static final int TOKEN_FORBIDDEN_SMS_CODE = 40303;
	
	// 短信模板不存在
	public static final int SYSTEM_ERROR_SMS_TEMPLATE_CODE = 500200;
	
	//短信发送失败
	public static final int SMS_FAIL_CODE = 40005;
	public static final String SMS_FAIL_MESSAGE = "短信发送失败";
	
	
}
